class BooleanCircuit:
    def __init__(self):
        self.gates = [
            {'type': 'add', 'input1': 0, 'input2': 1, 'output': 2},
            {'type': 'mult', 'input1': 2, 'input2': 3, 'output': 4}
        ]
        self.inputs = [0, 1]
        self.outputs = [4]

class ArithmeticCircuit:
    def __init__(self):
        self.gates = [
            {'type': 'add', 'input1': 0, 'input2': 1, 'output': 2},
            {'type': 'mult', 'input1': 2, 'input2': 3, 'output': 4}
        ]
        self.inputs = [0, 1]
        self.outputs = [4]